package com.java2007.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 读者实体类
 * @author zy
 * @version V1.0
 * @date 2021/03/10
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ReaderInfo {
    /**
     * 读者卡id
     */
    private Long readerId;
    /**
     * 读者姓名
     */
    private String username;
    /**
     * 读者性别
     */
    private String readerSex;
    /**
     * 读者生日
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date readerBirth;
    /**
     * 读者住址
     */
    private String readerAddress;
    /**
     * 读者电话
     */
    private String readerPhone;

    private String password;

    private String readerName;
}
